package com.example.demo.entity.response.purchase;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.example.demo.common.entity.response.BaseResponse;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lzy
 * @date 2020-09-15 16:49:26
 */
@Data
public class PurchaseListResponse extends BaseResponse implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "品牌")
    private String brand;
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "规格/型号")
    private String spec;
    @ApiModelProperty(value = "数量")
    private Integer quantity;
    @ApiModelProperty(value = "单位")
    private String unit;
    @ApiModelProperty(value = "备注")
    private String remarks;
    @ApiModelProperty(value = "供应商id")
    private Long supplierId;
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;
    @ApiModelProperty(value = "税率")
    private Long taxRate;
    @ApiModelProperty(value = "采购订单id")
    private Long orderId;
    @ApiModelProperty(value = "采购企业")
    private String enterprise;
    @ApiModelProperty(value = "含税单价")
    private Long withVat;
    @ApiModelProperty(value = "不含税单价")
    private Long withoutVat;
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(timezone = "GMT+8",
            pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "submit_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "提交时间")
    @ExcelIgnore
    private Date submitTime;

}
